﻿using PrjAssessModels.BaseModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace PrjAssess.Models.Service.DoAssessProject
{
    public class AssessItemsHelper
    {
        public static List<AssessItem> GetAssessItemsByTitle(string prjId, string title)
        {
            using (PrjAssessDb db = new PrjAssessDb())
            {
                var list = db.AssessItems.Where(p => p.PrjId == prjId && p.Title == title).OrderBy(p => p.Time).ToList();
                return list;
            }
        }
    }
}